package com.wj.blog.service.impl;

import com.wj.blog.mapper.LinkMapper;
import com.wj.blog.pojo.Link;
import com.wj.blog.service.AboutService;
import com.wj.blog.service.LinkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Author:   wj
 * Date:     2020/4/9 15:20
 * Description:
 */
@Service
public class LinkServcieImpl implements LinkService {

    @Autowired
    LinkMapper linkMapper;

    @Override
    public void save(Link link) {
        linkMapper.save(link);
    }

    @Override
    public void delted(Integer id) {
        linkMapper.delted(id);
    }

    @Override
    public void update(Link link) {
        linkMapper.update(link);
    }

    @Override
    public List<Link> listBack() {
        return linkMapper.listBack();
    }

    @Override
    public Link getById(Integer id) {
        return linkMapper.getById(id);
    }
}
